package com.gigi.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-03-26
 */
@TableName("comment_shiqin")
@ApiModel(value="CommentShiqinEntity对象", description="评论表")
public class CommentShiqinEntity extends Model<CommentShiqinEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "评论内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "评论时间")
    @TableField("time")
    private LocalDateTime time;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "父级评论id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "回复用户昵称")
    @TableField("reply_user_name")
    private String replyUserName;

    @ApiModelProperty(value = "回复内容")
    @TableField("reply_content")
    private String replyContent;

    @ApiModelProperty(value = "博客id")
    @TableField("blog_id")
    private Long blogId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    public String getReplyUserName() {
        return replyUserName;
    }

    public void setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName;
    }
    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }
    public Long getBlogId() {
        return blogId;
    }

    public void setBlogId(Long blogId) {
        this.blogId = blogId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CommentShiqinEntity{" +
            "id=" + id +
            ", content=" + content +
            ", time=" + time +
            ", userId=" + userId +
            ", parentId=" + parentId +
            ", replyUserName=" + replyUserName +
            ", replyContent=" + replyContent +
            ", blogId=" + blogId +
        "}";
    }
}
